﻿using CustomORM.Examples.Entities;
using CustomORM.Mapping;

namespace CustomORM.Examples.MappingRepository
{
    class EmployeeMap : EntityToTableMapper<Employee>
    {
        public EmployeeMap()
        {
            Table("Employees");
            Id(x => x.EmployeeID, "Employee ID");
            Map(x => x.LastName, "Last Name");
            Map(x => x.FirstName, "First Name");
            Map(x => x.Title, "Title");
            Map(x => x.City, "City");
            Map(x => x.Address, "Address");
        }
    }
}